import request from "@/utils/request";

// 查询项目交付物列表
export function listDeliverable(query) {
  return request({
    url: "/project/deliverable/list",
    method: "get",
    params: query,
  });
}

// 新增项目交付物
export function addDeliverable(data) {
  return request({
    url: "/project/deliverable",
    method: "post",
    data: data,
  });
}

// 修改项目交付物
export function updateDeliverable(data) {
  return request({
    url: '/brls/deliverable',
    method: 'put',
    data: data
  })
}

// 删除项目交付物
export function delDeliverable(deliverableId) {
  return request({
    url: "/project/deliverable/" + deliverableId,
    method: "delete",
  });
}
